package DataBases;


public class Propiedades {
	private double physical;
	private double chemical;
	private double biological;

	public Propiedades(double physical, double biological, double chemical) {
		this.physical = physical;
		this.chemical = chemical;
		this.biological = biological;
	}

	public double getPhysical() {
		return physical;
	}

	public void setPhysical(double physical) {
		this.physical = physical;
	}

	public double getChemical() {
		return chemical;
	}

	public void setChemical(double chemical) {
		this.chemical = chemical;
	}

	public double getBiological() {
		return biological;
	}

	public void setBiological(double biological) {
		this.biological = biological;
	}

	public String toString(){

		return "P: " + this.physical + "% : B:" + this.biological+"% : C:" + this.chemical + "%";
	}
	@Override
	public boolean equals(Object obj) {
		Propiedades p = (Propiedades)obj;
		return (biological == p.getBiological() && chemical == p.getChemical() && physical == p.getPhysical());
	}
}
